package com.woniuxy.net;

import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;

public class Server {

	public static void main(String[] args) throws Exception {
		ServerSocket server = new ServerSocket(10000);
		System.out.print("服务器监听10000端口....");
		Socket socket = server.accept(); // 等待客户端的请求，阻塞方法
		InputStream is = socket.getInputStream();
	}

}
